import Vue from 'vue'
import App from './App.vue'
import router from './router/zhaolei.js'
import store from './store'
import './assets/css/common.css'
import 'element-ui/lib/theme-chalk/index.css'
import './plugins/element.js'
//执行rem.js文件
import './assets/js/rem.js'
Vue.config.productionTip = false
// 全局过滤器
Vue.filter('dateFormate', function (v) {
  let date = v ? new Date(v) : new Date()
  let str = ''
  str += date.getFullYear() + '-'
  str += (date.getMonth() + 1 + '').padStart(2, '0') + '-'
  str += (date.getDate() + '').padStart(2, '0') + ' '
  str += (date.getHours() + '').padStart(2, '0') + ':'
  str += (date.getMinutes() + '').padStart(2, '0') + ':'
  str += (date.getSeconds() + '').padStart(2, '0')
  return str
})
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app')
